import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JTextField;

public class InputListener implements ActionListener {

    private GamePanel sudoku;
    int row;
    int col;
    public InputListener(GamePanel s,int row,int col){
        if (s == null)
            throw new IllegalArgumentException("Sudoku obj should not be null.");
        this.sudoku = s;
        this.row = row;
        this.col = col;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        JTextField cell = new JTextField();
        sudoku.isSelectedCellInputCorrect(row,col);
        sudoku.isGameOver();
    }

}
